//
// Created by hkkzzxz on 24-9-8.
//

#ifndef YUNSHI_EMPLOYEETODAYATTENDANCE_H
#define YUNSHI_EMPLOYEETODAYATTENDANCE_H

// 员工今日考勤实体类

#include <iostream>

#include "Model.h"

class EmployeeTodayAttendance : public Model {
public:
    EmployeeTodayAttendance() = default;

    void FillFromRow(sql::ResultSet *rs) override;

    [[nodiscard]]const std::string &getCheckInTime() const;

    [[nodiscard]]const std::string &getCheckOutTime() const;

    [[nodiscard]]bool isLate() const;

    [[nodiscard]]bool isLeaveEarly() const;

private:
    std::string checkInTime;
    std::string checkOutTime;
    bool late;
    bool leaveEarly;
};


#endif //YUNSHI_EMPLOYEETODAYATTENDANCE_H
